$dark: #58595b;
$blue: #4d90fe;
$light: #939598;

$basefont-size: 18px;

@mixin breakpoint($device) {
  @if $device == tablet {
    @media all and (min-width: 768px) and (max-width: 1024px) { @content; }
  }
  @else if $device == mobile {
    @media all and (max-width: 768px) { @content; }
  }
  @else if $device == both {
    @media all and (max-width: 1024px) { @content; }
  }
}

/* apply a natural box layout model to all elements, but allowing components to change */
html {
  box-sizing: border-box;
}
*, *:before, *:after {
  box-sizing: inherit;
}


html, body {
    margin: 0;
    padding: 0;
    font-family: Roboto, sans-serif;
    font-weight:300;
    font-size: $basefont-size;
    color: $light;
    text-align: center;
    -webkit-font-smoothing: antialiased;
}

#main {
    position: relative;
    margin: 0 auto;
}

#seal {
    position: absolute;
    top: 25px;
    right: 25px;
}

.video {
    cursor: pointer;
    position: relative;
    width: 100%;
    height: 575px;
    background: #eee;
    z-index: 1;
    background-size: cover;

    &:hover {
        .button {
            opacity: 1;
            -webkit-transform: translate3d(0, -3px, 0)
        }
    }

    @include breakpoint(tablet) { 
        height: 350px;
    }
    @include breakpoint(mobile) { 
        height: 200px;
    }
}

#video-frame {
    position: absolute;
    border: none;
    top: 0;
    left: 0;
    z-index: 2;
}

.buttonlink{
    display: inline-block;
    color: $dark;
    letter-spacing: 2px;
    border-radius: 30px;
    background: #fff;
    padding: 14px 50px;
    font-size: $basefont-size/1.2;
    cursor: pointer;
    text-transform: uppercase;
    &:hover{
        color: #fff;
        background: $blue;
    }
    &.blue{
        color: #fff;
        background: $blue;
        &:hover{
            background: #3076ed;
    }
    }

    @include breakpoint(tablet) { 
        padding: 10px 40px;
        font-size: $basefont-size/1.4;
    }
    @include breakpoint(mobile) { 
        padding: 8px 30px;
        font-size: $basefont-size/1.6;
    }
}

a {
    text-decoration: none;
    color: #1c75bc;
}

header {
    background: #000;
    /*background: url(../img/header.jpg) center center no-repeat;*/
    /*background-size: cover;*/
    padding: 150px 60px;
    -webkit-transition: all 200ms cubic-bezier(.26, .86, .44, .985);

    @include breakpoint(tablet) { padding: 90px 30px; }
    @include breakpoint(mobile) { padding: 60px 30px; }
}

section {
    margin: 0 auto;
    padding: 120px 0;
    &.gray{
        background: #f2f2f2;
    }
    &.fullwidth{
        width: 100%;
    }
    .wrapper{
        max-width: 1024px;
        margin: 0 auto;

        @include breakpoint(tablet) { 
            margin: 50px auto;
        }
        @include breakpoint(mobile) { 
            margin: 30px auto;
        }
    }

    @include breakpoint(tablet) { 
        width: auto;
        padding: 40px 0;
    }
    @include breakpoint(mobile) { 
        width: auto;
        padding: 10px 0;
    }
}

h1 {
    font-size: $basefont-size * 3;
    color: #fff;
    margin: 0;
    // text-shadow: 0 1px 4px rgba(0,0,0,.25);
    font-family: 'Roboto', sans-serif;

    @include breakpoint(tablet) { font-size: $basefont-size * 2.4; }
    @include breakpoint(mobile) { font-size: $basefont-size * 1.8; }
}

h2 {
    font-size: $basefont-size * 1.5;
    font-family: 'Roboto', sans-serif;
    font-weight: 300;
    color: rgba(255,255,255,1);
    // text-shadow: 0 1px 4px rgba(0,0,0,.25);

    @include breakpoint(tablet) { font-size: $basefont-size * 1.2; }
    @include breakpoint(mobile) { font-size: $basefont-size; }
}

h3, h4, h5 {
    color: $dark;
}

h3 {
    font-size: $basefont-size * 2.2;
    font-family: 'Roboto', sans-serif;
    margin: 15px 0;
    font-weight: 300;

    @include breakpoint(tablet) { font-size: $basefont-size * 1.5; }
    @include breakpoint(mobile) { font-size: $basefont-size * 1.3; }
}

h5 {
    font-size: $basefont-size * 1.1;
    margin: 70px 0 15px;
}

h6 {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 22px;
    text-transform: uppercase;
    margin: 25px 0 85px;
    -webkit-font-smoothing: antialiased;
}

p {
    
    font-family: 'Roboto', sans-serif;
    line-height: 25px;
    color: #66666a;
    font-weight: 300;
    &.big { 
        font-size: 20px;
    }
    &.small { 
        font-size: 14px;
    }
    &.center{
        padding: 0 150px;
        @include breakpoint(tablet) { padding: 0 180px; }
        @include breakpoint(mobile) { padding: 0 50px; }
    }

    @include breakpoint(tablet) { font-size: $basefont-size * 0.8; }
    @include breakpoint(mobile) { font-size: $basefont-size * 0.7; }
}

p.label {
    font-family: 'Open Sans', cursive;
    font-weight: 400;
    font-size: 38px;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: inline-block;
    margin: 0;
    padding: 0 30px;
    position: relative;
    top: -15px;
    background-color: #fff;
}

.bigblock{
    width: 800px;
    height: 500px;
    background: #ccc;
    margin: 0 auto 60px auto;
    background-size: cover;

    @include breakpoint(both) { 
        width: 100%;
        height: auto;
        margin-bottom: 20px;
    }
}

.bucket {
    margin: 0;
    padding: 0;

    &.divide {
        padding-right: 50px;
        > .small{
            width: 450px !important;
            &:nth-child(1) {
                border-right: 2px solid #ccc;
            }
        }
    }
    .column {
        box-sizing: border-box;
        display: inline-block;
        vertical-align: top;
        margin: 60px 25px 0 0;
        &.single {
            width: 600px;
            padding: 0;
        }
        
        &:nth-child(even) {
            margin-right: 0px;
        }
        &.small {
            width: 450px;
            .box { 
                width: 460px;
                height: 260px;
            }
        }
        .box {
            display: inline-block;
            width: 495px;
            height: 278px;
            position: relative;
            cursor: pointer;
            background: #ddd;
            border: 1px solid #ddd;
            background-position: center center;
            &:hover {
                .button {
                    opacity: 1;
                    -webkit-transform: translate3d(0, -6px, 0)
                }
            }
      
        }
    }

    @include breakpoint(both) { 
        &.divide {
            padding-right: 10px;
            h6{
                font-size: $basefont-size;
                margin-bottom: 25px;
            }
            > .small{
                width: 145px !important;
                &:nth-child(1) {
                    margin-right: 0px;
                    padding-right: 15px;
                    border-right: 2px solid #ccc;
                }
            }
        }
        .column {
            margin: 30px 25px 0 0;
            &.small {
                width: 250px;
                margin-bottom: 50px;
                h5{
                    margin-top: 30px;
                    font-size: $basefont-size * 0.8;
                }
                .box { 
                    width: 250px;
                    height: 160px;
                }
            }
        }
    }
    
}

.caption { 

        font-family: 'Open Sans', cursive;
        text-transform: uppercase;
        color: #939598;
        position: absolute;
        // top: 50%;
        // left: 50%;
        // border: 1px solid blue;
        width: 400px;
        margin-left: -200px;
        margin-top: 180px;
        text-align: center;
        z-index: 2;

    &.rule { 
        font-size: 14px; 
    }   
}

.description { 

    font-family: 'Open Sans', cursive;
    color: #BCBEC0;
    position: absolute;
    width: 400px;
    margin-left: -200px;
    margin-top: 210px;
    text-align: center;
    z-index: 2;
}



.simpleblocks {
    overflow: hidden;
    margin-top: 90px;
    padding-left: 30px;
    .block {
        float: left;
        width: 290px;
        min-height: 300px;
        margin-right: 45px;
        &.left {
           text-align: left !important;
        }
        &:nth-child(3n+3) {
            margin-right: 0px;
        }
    }
    h3 { 
        font-weight: normal;
        font-size: 22px;
        font-weight: 300;
        line-height: 20px;
        margin-top: 0;
        margin-bottom: 15px;

    }

    // @include breakpoint(both) { 
    //     margin: 0 auto;
    //     width: 80%;
    //     .block {
    //         box-sizing: border-box;
    //         float: none;
    //         width: 50%;
    //         min-height: 300px;
    //         padding: 0 20px;
    //         margin: 20px auto;
    //         &.left {
    //            text-align: left !important;
    //         }
    //         &:nth-child(3n+3) {
    //             margin-right: auto;
    //         }
    //         &:nth-child(2n+2) {
    //             margin-right: auto;
    //         }
    //         &:last-child {
    //             margin-bottom: 0px;
    //         }
    //         h3 { 
    //             font-size: $basefont-size;
    //         }
    //     }
    // }

}


.circularimg {
    width: 180px;
    height: 180px;
    margin: 0 auto 30px auto;
    border-radius: 100px;
    background: #ccc;
}
.squarebox{
    width: 50px;
    height: 50px;
    background: #ccc;
    margin-bottom: 30px;
}

.button {
    position: absolute;
    top: 50%;
    left: 50%;
    margin-top: -35px;
    margin-left: -50px;
    -webkit-transition: all .3s cubic-bezier(.26, .86, .44, .985);
    opacity: .85;

    @include breakpoint(both) { 
        width: 60px;
        margin-top: -20px;
        margin-left: -30px;
    }

}

.biglist{
    display: inline-block;
    list-style-type: none;
    text-align: left;
    font-weight: 400;
    padding: 0;
    li{
        font-size: 24px;
        padding: 26px 0;
        color: $dark;
        img.bullet{
            vertical-align: middle;
            margin-right: 20px;
        }
    }
    li span{
        font-size: 18px;
        color: #bbb;
    }

    @include breakpoint(both) { 
        li{
            padding: 15px 0;
            font-size: 16px
        }
        li span{
            font-size: 13px;
        }
    }
}




// .slider{
//     position: relative;
//     margin: 50px auto;
//     width: 960px;

//     .slidewrap{
//         position: relative;
//         margin: 0 auto;
//         height: 100%;
//         width: 800px;
//         padding-bottom: 50px;
//         overflow: hidden;

//         .slideholder{
//             padding: 0;
//             width: 10000px;

//             .slide{
//                 float: left;
//                 width: 790px;
//                 padding: 0 15px;
//                 text-align: center;
//                 vertical-align: middle;
//                 font-family: 'Open Sans',arial,sans-serif;
//                 font-size: $basefont-size;
//                 overflow: hidden;
//                 font-weight: normal;
//                 line-height: 1.4em;
//                 text-align: center;
//                 img{
//                     height: auto;
//                     width: 100%;
//                     display: block;
//                     margin: 0 auto;
//                     max-width: 800px;
//                     margin-bottom: 20px;
//                 }
//                 &.quote{
//                     font-size: 32px;
//                 }
                
//             }
//         }
//     }
//     .arrow{
//         position: absolute;
//         top: 50%;
//         width: 45px;
//         height: 110px;
//         margin: -55px 60px 0;
//         cursor: pointer;
//         z-index: 100;
//         opacity: 0.5;

//         &:hover{
//             opacity: 0.3;
//         }
//         &.right{
//             right: -55px;
//             background: url(../img/rightarrow.png) center center no-repeat;
//             background-size: cover;
//         }
//         &.left{
//             left: -55px;
//             background: url(../img/leftarrow.png) center center no-repeat;
//             background-size: cover;
//         }
//         @include breakpoint(both) { 
//             width: 23px;
//             height: 55px;
//         }
//     }
//     .buttonholder{
//         position: absolute;
//         bottom: 0px;
//         left: 50%;

//         .slidebutton{
//             background: #c5c5c5;
//             padding: 6px;
//             display: inline-block;
//             float: left;
//             margin-right: 15px;
//             border-radius: 15px;
//             cursor: pointer;

//             &.active{
//                 background: #333;
//             }
//         }
//     }

//     @media all and (max-width: 960px) { 
//         width:98%;
//         .slidewrap{
//             width:100%;
//             .slideholder{
                
//             }
//         }
//     }



//     // @include breakpoint(both) { 
//     //     width: 98%;
//     //     .slidewrap{
//     //         width: 92%;
//     //         .slideholder{
//     //             .slide{
//     //                 width: 300px;
//     //                 font-size: $basefont-size / 2;
//     //                 img{
//     //                     width: 100%;
//     //                 }
//     //                 &.quote{
//     //                     font-size: 16px;
//     //                 }
//     //             }
//     //         }
//     //     }
//     // }
    
// }



.tabshow{
    margin: 0 auto;
    width: 960px;
    .tab{
        position: relative;
        display: inline-block;
        padding: 50px 25px;
        width: 185px;
        margin: 0;
        cursor: pointer;
        font-size: $basefont-size * 1.2;
        font-weight: 400;
        line-height: 1em;
        color: $light;

        .subline{
            margin-top: 15px;
            font-size: $basefont-size / 1.2;
            font-weight: 300;
            color: $light;
        }
        &.active{
            box-shadow: 0px 1px 15px rgba(0,0,0,0.3);
            color: $dark;

            &:after {
                display: block;
            }
            span{
               color: #777; 
            }
        }
        &:after {
            display: none;
            position: absolute;
            bottom: -10px;
            left: 50%;
            margin-left: -25px;
            font-size: 66px;
            color: white;
            content:'\25be';
            text-shadow: 0px 5px 10px rgba(0,0,0,0.2);
        }

        @include breakpoint(both) { 
            padding: 25px 20px;
            width: 32%;
            box-sizing: border-box;
            font-size: $basefont-size / 1.5;
            .subline{
                font-size: $basefont-size / 2;
            }
            &:after {
                font-size: 34px;
                bottom: -7px;
                margin-left: -5px;
            }
        }

    }

    .contentwrapper{
        display: inline-block;
        img{
            height: 100%;
            width: 100%;
            margin-bottom: 20px;
        }
        .tab-box{
            width: 940px;
            display: none;
            &.active{
                display: inline-block;
            }
            .slidetext{
                padding: 40px 300px 80px;
            }
        }

        @include breakpoint(both) { 
            .tab-img{
                margin: 10px 0;
            }
            .tab-box{
                overflow: hidden;
                width: 100%;
                .slidetext{
                    padding: 10px 60px 30px;
                }
            }
        }
    }

    @include breakpoint(both) { 
        width: 85%;
    }
}



footer{
    background: #ebebeb;
    padding-top: 80px;
    text-align: center;
    font-weight: 300;
    font-size: 14px;
    span{
        color: #fff;
        font-weight: 400;
    }

    #footerbar{
        background: #1e2022;
        margin-top: 80px;
        padding: 25px 50px;
        color: #777;
        overflow: hidden;
        .link-left{
            float: left;
        }
        .link-right{
            float: right;
        }
        
        @include breakpoint(both) {
            .link-left{
                float: none;
            }
            .link-right{
                float: none;
                margin-top: 15px;
            }
        }
        
    }
    p{
        font-size: $basefont-size; 
    }
    .linkholder{
        margin: 30px 0;

        .link{
            box-sizing: border-box;
            display: inline-block;
            vertical-align: top;
            width: 300px;
            padding: 0 35px;
            p{
                font-size: 16px;
            }
        }
         @include breakpoint(both) {
            .link{
                margin-bottom: 25px;
            }
        }
    }

   
}